package com.wjc.train.business.req;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wjc.train.common.entity.BaseQuery;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 每日座位表
 * </p>
 *
 * @author Guessed
 * @since 2023-08-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("daily_train_seat")
public class DailyTrainSeatQueryReq extends BaseQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 车次编号
     */
    private String trainCode;

    /**
     * 厢序
     */
    private Integer carriageIndex;

    /**
     * 排号|01 02
     */
    @TableField(value = "seat_row")
    private String seatRow;

    /**
     * 列号
     */
    @TableField(value = "seat_col")
    private String seatCol;

    /**
     * 座位类型
     */
    private Integer seatType;

    /**
     * 同车厢坐序
     */
    private Integer carriageSeatIndex;

    /**
     * 日期
     */
    @TableField(value = "train_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",locale = "zh",timezone = "GMT+8")
    private Date trainDate;
    /**
     * 售卖情况|将经过的车站用01拼接
     */
    private String sell;


}
